In numerical analysis Gauss–Laguerre quadrature is an extension of Gaussian quadrature method for approximating the value of integrals of the following kind:
In this case
where xi is the i-th root of Laguerre polynomial Ln(x) and the weight wi is given by [1]
Contents |
To integrate the function
More generally, one can also consider integrands that have a known power-law singularity at x=0, for some real number , leading to integrals of the form:
This allows one to efficiently evaluate such integrals for polynomial or smooth f(x) even when α is not an integer.[2]
Suppose want to calculate for n=5
n=5; t = Array[N[Root[LaguerreL[n, x], #]] &, n] w = t/((n + 1)*LaguerreL[(n + 1), t])^2 modW = Array[(Exp[t#]*t#)/(((n + 1)*LaguerreL[(n + 1), t#])^2) &, n]
t is an Abscissa array. w is the corresponding array of weights and modW is the corresponding array of modified weights.